package 作业.死锁;

public class Thread1 extends Thread {
    @Override
    public void run() {
        synchronized (Lock.LOCK_A){
            System.out.println("1拿到了A锁");
            synchronized (Lock.LOCK_B){
                System.out.println("1拿到了B锁");
            }
        }
    }
}
